var roleAddVue = new Vue({
	el: '#roleAddVue',
	data: {
		role: {
			roleName: '',
			remark: '',
			createUserId: 1
		}
	},
	methods: {
		roleAdd: function() {
			var that = this;
			this.$http.post('http://127.0.0.1:8090/system/role/add',that.role, {
				emulateJSON:true
			}).then((response) => {
				console.log(response.body.head)
			}, (response) => {
				console.log(response)
			})
		}
	}
});

			/*			$.ajax({
							url: 'http://127.0.0.1:8090/system/role/add',
							type: 'POST',
							data: that.role,
							dataType: 'json',
							success: function(data, textStatus, jqXHR) {
								console.log(data)
							},
							error: function(xhr, textStatus) {
								console.log('错误')
								console.log(xhr)
								console.log(textStatus)
							}
						})*/